body {
  background: linear-gradient(120deg, #f5f5f5 60%, #eaf6fb 100%);
  color: #333;
  font-family: 'Segoe UI', 'PingFang SC', Arial, sans-serif;
}
.header {
  background: #e74c3c;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-menu {
  display: flex;
  margin-left: 32px;
}
.nav-item {
  padding: 0 18px;
  height: 60px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  transition: color 0.2s;
}
.nav-item.active, .nav-item:hover {
  background: #fff;
  color: #e74c3c;
  border-radius: 8px 8px 0 0;
}
.user-actions {
  margin-left: auto;
  display: flex;
}
.user-action {
  margin-left: 18px;
  cursor: pointer;
  font-size: 15px;
  transition: color 0.2s;
}
.user-action:hover {
  color: #e74c3c;
}
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 32px auto;
  background: #fff;
  box-shadow: 0 0 16px rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.left-menu {
  width: 200px;
  background: #f9f9f9;
  border-right: 1px solid #eee;
  padding-top: 24px;
}
.menu-item {
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.menu-item:hover, .menu-item.active {
  background: #f0f0f0;
  color: #e74c3c;
}
.game-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.game-tab {
  padding: 10px 24px;
  cursor: pointer;
  color: #666;
  font-size: 15px;
  transition: color 0.2s, border-bottom 0.2s;
}
.game-tab.active, .game-tab:hover {
  color: #e74c3c;
  border-bottom: 2px solid #e74c3c;
}
.game-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
.game-item {
  width: calc(50% - 24px);
  margin: 0 12px 24px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  background: #fafbfc;
  transition: box-shadow 0.2s;
}
.game-item:hover {
  box-shadow: 0 4px 16px rgba(231,76,60,0.08);
}
.game-image {
  width: 120px;
  height: 90px;
  overflow: hidden;
  background: #eaeaea;
}
.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-info {
  flex: 1;
  padding: 14px 16px;
}
.game-title {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 16px;
}
.game-stats {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.game-actions {
  display: flex;
  margin-top: 10px;
}
.game-btn {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.game-btn.detail {
  background: #f5f5f5;
  color: #666;
}
.game-btn.detail:hover {
  background: #e1e1e1;
  color: #e74c3c;
}
.game-btn.play {
  background: #3498db;
  color: #fff;
}
.game-btn.play:hover {
  background: #217dbb;
}
.role-play-section {
  margin-top: 36px;
}
.section-title {
  font-size: 20px;
  color: #e74c3c;
  margin-bottom: 18px;
  border-left: 4px solid #e74c3c;
  padding-left: 12px;
}
.role-play-games {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.role-game-item {
  width: calc(25% - 20px);
  margin: 0 10px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.role-game-item:hover {
  box-shadow: 0 4px 16px rgba(231,76,60,0.08);
}
.role-game-image {
  height: 120px;
  overflow: hidden;
  background: #eaeaea;
}
.role-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.role-game-info {
  padding: 12px 14px;
}
.role-game-stats {
  font-size: 12px;
  color: #999;
  margin: 6px 0;
}
.role-game-actions {
  display: flex;
  justify-content: flex-end;
}
.right-sidebar {
  width: 250px;
  padding: 24px 20px;
  border-left: 1px solid #eee;
  background: #fafbfc;
}
.login-section {
  background: #f9f9f9;
  padding: 18px;
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.login-title {
  font-size: 17px;
  margin-bottom: 12px;
  color: #e74c3c;
}
.login-form input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}
.login-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 9px;
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}
.login-btn:hover {
  background: #c0392b;
}
.login-links {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 10px;
}
.news-section {
  margin-bottom: 24px;
}
.news-title {
  font-size: 16px;
  color: #e74c3c;
  margin-bottom: 10px;
  border-left: 3px solid #e74c3c;
  padding-left: 10px;
}
.news-list {
  font-size: 13px;
}
.news-item {
  padding: 5px 0;
  display: flex;
  align-items: center;
}
.news-item:before {
  content: "·";
  color: #e74c3c;
  margin-right: 5px;
}
.ad-section img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
}
.banner {
  position: relative;
  height: 240px;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(52,152,219,0.06);
}
.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}
.banner-slide.active {
  opacity: 1;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  padding: 22px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  border-radius: 8px;
}
.banner-title {
  font-size: 22px;
  margin-bottom: 10px;
}
.banner-desc {
  font-size: 14px;
  margin-bottom: 10px;
}
.banner-btn {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 8px 18px;
  border-radius: 3px;
  font-size: 14px;
  transition: background 0.2s;
}
.banner-btn:hover {
  background: #c0392b;
}
.banner-dots {
  position: absolute;
  bottom: 18px;
  right: 32px;
  display: flex;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.banner-dot.active {
  background: #e74c3c;
}
.footer {
  background: #222;
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: #aaa;
  border-top: 1px solid #eee;
  margin-top: 44px;
}
.footer-links {
  margin-bottom: 10px;
}
.footer-link {
  margin: 0 10px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #e74c3c;
}
